/**
 * Policy Mappings
 * (sails.config.policies)
 *
 * Policies are simple functions which run **before** your controllers.
 * You can apply one or more policies to a given controller, or protect
 * its actions individually.
 *
 * Any policy file (e.g. `api/policies/authenticated.js`) can be accessed
 * below by its filename, minus the extension, (e.g. "authenticated")
 *
 * For more information on how policies work, see:
 * http://sailsjs.org/#!/documentation/concepts/Policies
 *
 * For more information on configuring policies, check out:
 * http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.policies.html
 */


 module.exports.policies = {
    FeebackController: {
      add: 'isAuthenticated',
      show: ['isLogin','isAdmin']
    },
    RoutsController:['isAuthenticated'],
    HomeController: {
      show: 'isAuthenticated',
      home:['isLogin','isAdmin'],
      add:['isLogin','isAdmin'],
      delet:['isLogin','isAdmin']
    },
    // ShowController: {
    //   show: 'isAuthenticated'
    // },
    InfoController: {
      show: 'isAuthenticated',
      save:'isAuthenticated',
      delet:['isLogin','isAdmin'],
      add:['isLogin','isAdmin']
    },
    WebController:{
      showAllImage:['isLogin','isAdmin'],
      showInfo:['isLogin','isAdmin']
    },
    FunController:['isLogin','isAdmin']
};
